<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //写法
        (function () {
            console.log('小滴课堂');
        })();

        //对照
        (function () {
            console.log('xdkt');
        });
        //加参
        (function (a,b) {
            console.log(a+b);
            console.log('小滴课堂');
        })(1,2);
    </script>
</body>
</html>